package com.uikoo9.manage.y.util;

/**
 * Created with IntelliJ IDEA.
 * User: shoko (fbjia.com)
 * Date: 13-11-14
 * Time: 上午10:13
 * To change this template use File | Settings | File Templates.
 */

/**
 * File Desc:  公共常量
 * Product Name: SIRM
 * Module Name: Common
 * Author:      dq.pan
 * History:     2011-03-13 created by dq.pan
 */
public class GlobalConstant {

    /*
      * ================各种各样的KEY=========================================================================
      */
    /**
     * Struts2中Action后缀名：xn
     */
    public final static String ACTION_POSTFIX = "xn";

    /**
     * session中变量名：当前用户 user
     */
    public final static String SESSION_USER = "user";

    /**
     * session中变量名：当前用户的栈名 stack_url
     */
    public final static String SESSION_STACK_URL = "stack_url";

    /**
     * session中变量名：当前用户的分支栈名前缀 stack_
     */
    public final static String SESSION_STACK_RAMUS_PREFIX = "stack_";

    /**
     * session中变量名：当前用户的菜单URL集合名称 menu_url
     */
    public final static String SESSION_MENU_URL = "menu_url";

    /**
     * session中变量名：查询列表 queryList
     */
    public final static String SESSION_QUERYLIST = "queryList";

    /**
     * session中变量名：原始名称 originName
     */
    public final static String SESSION_QRIGINNAME = "originName";

    /**
     * session中变量名：当前被修改的PO对象 delayObject
     */
    public final static String SESSION_DELAYOBJECT = "delayObject";

    /**
     * session中变量名：当前附件列表的KEY：attachmentList_&lt;UID&gt;_&lt;TYPE&gt;
     */
    public final static String SESSION_ATTACHMENTLIST = "attachmentList_<UID>_<TYPE>";

    /**
     * session中变量名：当前附件上传组件的业务类型的KEY：attachment_targetType
     */
    public final static String SESSION_ATTACHMENT_TARGETTYPE = "attachment_targetType";

    /**
     * session中变量名：当前附件上传组件的来源ID的KEY：attachment_sourceId
     */
    public final static String SESSION_ATTACHMENT_SOURCEID = "attachment_sourceId";

    /**
     * request中变量名：操作按钮 btn_code
     */
    public final static String REQUEST_BTN_CODE = "btn_code";

    /**
     * request中变量名：自定义标签 标签代码  btn_label
     */
    public final static String REQUEST_LABEL_CODE = "btn_label";

    /**
     * request中变量名：自定义标签 对象 commonDO
     */
    public final static String LABEL_COMMON_OBJECT = "commonDO";

    /**
     * request中变量名：放大镜类型：authObjectType
     */
    public final static String REQUEST_AUTHOBJECT_TYPE = "authObjectType";

    /**
     * request中变量名：放大镜辅助类型：authObjectOtherType
     */
    public final static String REQUEST_AUTHOBJECT_OTHER_TYPE = "authObjectOtherType";

    /**
     * request中变量名：表头 table_head
     */
    public final static String REQUEST_TABLE_HEAD = "table_head";

    /**
     * request中变量名：表格数据 table_data
     */
    public final static String REQUEST_TABLE_DATA = "table_data";

    /**
     * request中变量名：分页工具类的对象 pageInstance
     */
    public final static String PAGE_INSTANCE = "pageInstance";

    /**
     * request中变量名：另一个表头 other_table_head
     */
    public final static String REQUEST_OTHER_TABLE_HEAD = "other_table_head";

    /**
     * request中变量名：另一个表格数据 other_table_data
     */
    public final static String REQUEST_OTHER_TABLE_DATA = "other_table_data";

    /**
     * request中变量名：另一个分页工具类的对象 otherPageInstance
     */
    public final static String OTHER_PAGE_INSTANCE = "otherPageInstance";

    /**
     * request中变量名：审批标志 appUserFlag
     */
    public final static String APPUSERFLAG = "appUserFlag";

    /**
     * request中变量名：上传标志 uploadFlag
     */
    public final static String UPLOADFLAG = "uploadFlag";

    /**
     * request中变量名：是否首次打开页面 isInitPage
     */
    public final static String ISINITPAGE = "isInitPage";

    /**
     * 分页相关的Map的Key：startNum (起始行)
     */
    public final static String PAGE_STARTNUM = "startNum";

    /**
     * 分页相关的Map的Key：endNum (结束行)
     */
    public final static String PAGE_ENDNUM = "endNum";

    /**
     * 分页相关的Map的Key：countFlag (是否分页 0-是1-否)
     */
    public final static String PAGE_COUNTFLAG = "countFlag";

    /**
     * 分页操作：首页 first
     */
    public final static String PAGE_OP_FIRST = "first";

    /**
     * 分页操作：上一页 fore
     */
    public final static String PAGE_OP_FORE = "fore";

    /**
     * 分页操作：下一页 next
     */
    public final static String PAGE_OP_NEXT = "next";

    /**
     * 分页操作：尾页 last
     */
    public final static String PAGE_OP_LAST = "last";

    /**
     * 分页操作：跳转 forward
     */
    public final static String PAGE_OP_FORWARD = "forward";

    /**
     * 入栈操作：判断是否入栈的变量名 track
     */
    public final static String STACK_PUSH_PARAMETER = "track";

    /**
     * 入栈操作：判断是否入分支栈的变量名 targetPage
     */
    public final static String STACK_PUSH_OTHER_PARAMETER = "targetPage";

    /**
     * 出栈操作：判断是否清空分支栈的变量名 clearTrack
     */
    public final static String STACK_CLEAT_PARAMETER = "clearTrack";

    /**
     * 出栈操作：判断是否出栈的变量名 outTrack
     */
    public final static String STACK_POP_PARAMETER = "outTrack";

    /**
     * 出栈操作：出栈的变量名 popTimes
     */
    public final static String STACK_POP_TIMES = "popTimes";

    /**
     * 入栈操作：(判断是否入栈的)变量的值 1
     */
    public final static String STACK_PUSH_VALUE = "1";

    /**
     * JS信息提示的变量的后缀 msg
     */
    public final static String STR_MSG_PARAMETER_SUFFIX = "MSG";

    /**
     * (新增或修改)操作完成的信息提示的KEY MSG_OP_SUCCESS
     */
    public final static String MSG_OP_SUCCESS = "MSG_OP_SUCCESS";

    /**
     * 报表页面上的标签名称的前缀：query.condition
     */
    public final static String REPORT_PAGE_TAGNAME_PREFIX = "query.condition";

    /**
     * 系统在Cookie里保存登陆名的KEY：loginNameText
     */
    public final static String COOKIE_KEY_OF_LOGINNAME = "loginNameText";

    /**
     * 系统在Cookie里保存密码的KEY：passwordText
     */
    public final static String COOKIE_KEY_OF_PASSWORD = "passwordText";

    /*
      * ================各种格式样式=========================================================================
      */
    /**
     * 英文编码 ISO-8859-1
     */
    public final static String ENG_CODE_PAGE = "ISO-8859-1";

    /**
     * 中文编码 GBK
     */
    public final static String CN_CODE_PAGE = "GBK";

    /**
     * UTF编码 UTF-8
     */
    public final static String UTF_CODE_PAGE = "UTF-8";

    /**
     * 时间格式 yyyy-MM-dd
     */
    public final static String TIME_FORMAT_TEN = "yyyy-MM-dd";

    /**
     * 时间格式 yyyy-MM
     */
    public final static String TIME_FORMAT_SEVEN = "yyyy-MM";

    /**
     * 时间格式 yyyyMMdd
     */
    public final static String TIME_FORMAT_EIGHT = "yyyyMMdd";

    /**
     * 时间格式 HH:mm:ss
     */
    public final static String TIME_FORMAT_SIX = "HH:mm:ss";

    /**
     * 时间格式 yyyy-MM-dd HH:mm:ss
     */
    public final static String TIME_FORMAT_THIRTEEN = "yyyy-MM-dd HH:mm:ss";

    /*
      * ================各种参数常量=========================================================================
      */
    /**
     * 表格内容字段显示的最大长度：20
     */
    public final static int TD_MAX_LENGTH = 20;

    /**
     * 所在国家的ID：1
     */
    public final static String DEFAULT_COUNTRY_ID = "1";

    /**
     * Struts2文件上传相关：高级缓冲区大小：20 * 1024(Bit)
     */
    public final static int FILEUPLOAD_SIZETHRESHOLD = 100 * 1024;

    /**
     * 整个系统查询条件区时间条件是否默认显示：true
     */
    public final static boolean IS_DEFAULT_DISPLAY_DATE = Boolean.TRUE;

    /*
      * ================组件相关=========================================================================
      */
    /**
     * Table组件相关：（复选框）列的序列号：-1
     */
    public final static String TABLE_INDEX_CHECKBOX = "-1";

    /**
     * Table组件相关：（操作）列的序列号：-2
     */
    public final static String TABLE_INDEX_OP = "-2";

    /**
     * Table组件相关：（复选框）列的列名 cBoxColumn
     */
    public final static String TABLE_CHECKBOX_VALUE = "cBoxColumn";

    /**
     * Table组件相关：（链接）列的列名 linkColumn
     */
    public final static String TABLE_LINK_VALUE = "linkColumn";

    /**
     * Table组件相关：（操作）列的列名 opColumn
     */
    public final static String TABLE_OP_VALUE = "opColumn";

    /**
     * Table组件相关：columnName
     */
    public final static String TABLE_COLUMNNAME = "columnName";

    /**
     * Table组件相关：blockName
     */
    public final static String TABLE_BLOCKNAME = "blockName";

    /**
     * Table组件相关：columnURL
     */
    public final static String TABLE_COLUMNURL = "columnURL";

    /**
     * Table组件相关：主键列的列名：ID
     */
    public final static String SPECIAL_TABLE_ID = "ID";

    /**
     * Table组件相关：复选框列的列名：选择
     */
    public final static String CHECKBOX_COLUMN_NAME = "选择";

    /**
     * Table组件相关：操作列的列名：操作
     */
    public final static String OP_COLUMN_NAME = "操作";

    /**
     * Table组件相关：操作列的列内容：修改
     */
    public final static String OP_COLUMN_UPDATE = "修改";

    /**
     * Table组件相关：操作列的列内容：删除
     */
    public final static String OP_COLUMN_DEL = "删除";

    /**
     * Table组件相关：操作列的列名：操作
     */
    public final static String OP_COLUMN_SUBMIT = "提交";

    /**
     * Table组件相关：操作列的列内容：回复
     */
    public final static String OP_COLUMN_REPLY = "回复";

    /**
     * Table组件相关：操作列的列内容：取消
     */
    public final static String OP_COLUMN_CANCEL = "取消";

    /**
     * Table组件相关：操作列的列内容：添加备注
     */
    public final static String OP_COLUMN_BACKUP = "添加备注";

    /**
     * Table组件相关：操作列的列内容：查看
     */
    public final static String OP_COLUMN_READ = "查看";

    /**
     * Table组件相关：操作列的列内容：锁定
     */
    public final static String OP_COLUMN_LOCK = "锁定";

    /**
     * Table组件相关：操作列的列内容：下载
     */
    public final static String OP_COLUMN_DOWNLOAD = "下载";

    /**
     * Table组件相关：操作列的列内容：调查
     */
    public final static String OP_COLUMN_SURVEY = "调查";

    /**
     * Table组件相关：操作列的列内容：查看渠道
     */
    public final static String OP_COLUMN_CHANNELREAD = "查看渠道";

    /**
     * Table组件相关：操作列、链接列的URL中Javascript前缀：javascript:
     */
    public final static String LINK_JS_PREFIX = "javascript:";

    /**
     * Table组件相关：操作列、链接列的URL中fid标记： &lt;FID&gt;
     */
    public final static String LINK_PARAM_SIGN = "<FID>";

    /**
     * Table组件相关：链接列的参数名 fid
     */
    public final static String LINK_PARAM_NAME = "fid";


    /**
     * AJAX组件相关：方法参数名 method
     */
    public final static String AJAX_PARAM_NAME = "method";

    /**
     * AJAX组件相关：子控件参数名 child
     */
    public final static String AJAX_CHIND_NAME = "child";

    /**
     * AJAX组件相关：子控件参数名 type
     */
    public final static String AJAX_TYPE_NAME = "type";

    /**
     * AJAX组件相关：子控件参数名 remark
     */
    public final static String AJAX_REMARK = "remark";

    /**
     * AJAX组件相关：子控件参数名 size
     */
    public final static String AJAX_SIZE_NAME = "size";

    /**
     * AJAX组件相关：子控件是否有onchange方法的参数名 flag
     */
    public final static String AJAX_FLAG_NAME = "flag";

    /**
     * AJAX组件相关：子控件的class样式的参数名 cssClass
     */
    public final static String AJAX_CSSCLASS_NAME = "cssClass";

    /**
     * AJAX组件相关：子控件的相关联SELECT组件的参数名 relateTag
     */
    public final static String AJAX_RELATETAG = "relateTag";

    /**
     * AJAX组件相关：子控件的onchange方法的参数名 onchange
     */
    public final static String AJAX_ON_CHANGE = "onchange";

    /**
     * AJAX组件相关：子控件的已勾选的值的参数名 defaultIds
     */
    public final static String AJAX_DEFAULTIDS = "defaultIds";

    /**
     * Label组件相关：传递的对象名称 common
     */
    public final static String Label_ATTRIBUT_NAME = "common";

    /**
     * Label组件相关：必须进行DES加密(以传递中文防止乱码)的属性的后缀名 Name
     */
    public final static String Label_DES_NAME = "Name";

    /**
     * DES加密的密钥 20121221
     */
    public final static String DES_PASSWORD = "20121221";

    /**
     * 信息提示组件相关：URL传入KEY的属性名 opMsgKey
     */
    public final static String MESSAGE_PARAMETER_KEY = "opMsgKey";

    /**
     * 多选组件参数设置：展示信息文本输入框的默认长度 20
     */
    public final static String MULTISELECT_TEXTFIELD_SIZE = "20";

    /**
     * 多选组件参数设置：展示信息的标签类型：text
     */
    public final static String MULTISELECT_DISPLAY_TYPE_TEXT = "text";

    /**
     * 多选组件参数设置：展示信息的标签类型：textarea
     */
    public final static String MULTISELECT_DISPLAY_TYPE_TEXTAREA = "textarea";

    /**
     * 多选组件参数设置：展示信息的标签类型：span
     */
    public final static String MULTISELECT_DISPLAY_TYPE_SPAN = "span";

    /**
     * 放大镜相关：退出标记 quit
     */
    public final static String AUTHOBJECT_QUIT = "quit";

    /**
     * 放大镜相关：作用标签的文本输入框的size： 40
     */
    public final static String AUTHOBJECT_SIZE = "40";

    /**
     * 放大镜相关：勾选记录的ids允许的最大长度： 400
     */
    public final static String AUTHOBJECT_MAXLENGTH = "400";

    /**
     * 放大镜相关：新窗口的布局，wight： 770
     */
    public final static String AUTHOBJECT_LAYER_WIDTH = "780";

    /**
     * 放大镜相关：新窗口的布局，height： 500
     */
    public final static String AUTHOBJECT_LAYER_HEIGHT = "500";

    /**
     * 放大镜相关：新窗口的布局，top： 100
     */
    public final static String AUTHOBJECT_LAYER_TOP = "100";

    /**
     * 放大镜相关：新窗口的布局，left： 150
     */
    public final static String AUTHOBJECT_LAYER_LEFT = "120";

    /**
     * 放大镜相关：作用标签属性一的后缀：AuthIds
     */
    public final static String AUTHOBJECT_ATTRIBUTE_POSTFIX_IDS = "AuthIds";

    /**
     * 放大镜相关：作用标签属性二的后缀：AuthDisplayNames
     */
    public final static String AUTHOBJECT_ATTRIBUTE_POSTFIX_NAMES = "AuthDisplayNames";

    /**
     * 放大镜相关：作用标签属性三的后缀：AuthDisplayInfos
     */
    public final static String AUTHOBJECT_ATTRIBUTE_POSTFIX_INFOS = "AuthDisplayInfos";

    /**
     * 高级查询组件相关：默认查询条件的最大允许个数：5
     */
    public final static String ADVANCEDQUERY_MAX_CONDITIONS = "5";

    /**
     * 高级查询组件相关：值下拉列表的size：3
     */
    public final static String ADVANCEDQUERY_VALUE_SELECT_SIZE = "3";

    /**
     * 附件上传组件：列表Table的名称列宽：433
     */
    public final static int FILEUPLOAD_TABLE_NAME_COLUMN_WIDTH = 500;

    /**
     * 附件上传组件：列表Table的操作列宽：117
     */
    public final static int FILEUPLOAD_TABLE_OP_COLUMN_WIDTH = 145;

    /**
     * Tree组件相关：父节点的格式：&lt;item id='%s' text='%s' child='%s_c' im0='%s' im1='%s' im2='%s'&gt;
     */
    public final static String TREE_FATHER_NODE_FORMAT = "<item id='%s' text='%s' child='%s_c' im0='%s' im1='%s' im2='%s'>";

    /**
     * Tree组件相关：叶子节点的格式：&lt;item id='%s' text='%s' im0='%s' im1='%s' im2='%s'/&gt;
     */
    public final static String TREE_LEAF_NODE_FORMAT = "<item id='%s' text='%s' im0='%s' im1='%s' im2='%s'/>";

    /**
     * Tree组件相关：节点格式：&lt;item id='%s' text='%s' im0='%s' im1='%s' im2='%s' child='%s'
     */
    public final static String TREE_NODE_FORMAT = "<item id='%s' text='%s' im0='%s' im1='%s' im2='%s' child='%s'";

    /**
     * Tree组件相关：node without childrens image： im0.gif
     */
    public final static String TREE_NODE_IMG_0 = "im0.gif";

    /**
     * Tree组件相关：closed node image： im1
     */
    public final static String TREE_NODE_IMG_1 = "im1.gif";

    /**
     * Tree组件相关：open node image： im2
     */
    public final static String TREE_NODE_IMG_2 = "im2.gif";

    /**
     * Tree组件相关：节点加载时提示的信息：系统正在加载数据,请稍候....
     */
    public final static String TREE_NODE_WAIT_MSG = "系统正在加载数据,请稍候....";

    /*
      * ================多选组件Layer的一些参数设置===========================================================
      */
    /**
     * 多选组件参数设置：展示时每行最大的checkbox个数 3
     */
    public final static int MULTISELECT_LAYER_MAXCOLUMN = 3;

    /**
     * 多选组件参数设置：Layer的总宽度 460
     */
    public final static int MULTISELECT_LAYER_WIDTH = 460;

    /**
     * 多选组件参数设置：Layer的第一行高度 30
     */
    public final static int MULTISELECT_LAYER_HEADHEIGHT = 30;

    /**
     * 多选组件参数设置：Layer的按纽的高度 20
     */
    public final static int MULTISELECT_LAYER_BUTTONHEIGHT = 20;

    /**
     * 多选组件参数设置：Layer的展示行高度 20
     */
    public final static int MULTISELECT_LAYER_COMMONTRHEIGHT = 20;

    /**
     * 多选组件参数设置：数据列中padding-left的值 10
     */
    public final static int MULTISELECT_LAYER_PADDINGLEFT = 10;

    /*
      * ================几种符号标点=========================================================================
      */
    /**
     * 空字符串 ""
     */
    public final static String STR_EMPTY = "";

    /**
     * 字符串 "null"
     */
    public final static String STR_NULL = "null";

    /**
     * 字符串 "..."
     */
    public final static String SUSPENSION_POINTS = "...";

    /**
     * 英文标点符号 ","
     */
    public final static String COMMA = ",";

    /**
     * 英文标点符号 ":"
     */
    public final static String COLON = ":";

    /**
     * 英文标点符号 "%"
     */
    public final static String PERCENTSIGN = "%";

    /**
     * 英文标点符号 "-"
     */
    public final static String RAIL = "-";

    /**
     * 英文标点符号 "?"
     */
    public final static String INTERROGATION = "?";

    /**
     * 英文符号 " "
     */
    public final static String SPACE = " ";

    /**
     * 英文符号 "#"
     */
    public final static String WELL = "#";

    /**
     * 英文符号 "="
     */
    public final static String EQUAL = "=";

    /**
     * 英文符号 "&"
     */
    public final static String AND = "&";

    /**
     * 英文符号 "$"
     */
    public final static String DOLLAR = "$";

    /**
     * 英文符号 "*"
     */
    public final static String CLUB = "*";

    /**
     * 英文符号 "_"
     */
    public final static String UNDERLINE = "_";

    /**
     * 英文符号 "."
     */
    public final static String SPOT = ".";

    /**
     * 英文符号 "/"
     */
    public final static String SLASH = "/";

    /**
     * 英文符号 "|"
     */
    public final static String LINE = "&";

    /**
     * 默认值
     */
    public final static String DEFAULVALUE = "--";

    /**
     * 默认值
     */
    public final static String DEFAULVALUE_ONE = "-";

    /**
     * 默认值
     */
    public final static String DEFAUL_NO_VALUE = "无";


    /**
     * HTML空格符 "&nbsp;"
     */
    public final static String BLANK = "&nbsp;";

    /**
     * NORMAL
     */
    public final static String NORMAL = "正常";

    /**
     * 是
     */
    public final static String YES = "是";

    /*
      * ================各种Result名称=========================================================================
      */
    /**
     * 查询 query
     */
    public final static String RESULT_QUERY = "query";

    /**
     * 保存 save
     */
    public final static String RESULT_SAVE = "save";

    /**
     * 保存并新增 saveAndAdd
     */
    public final static String RESULT_SAVEANDADD = "saveAndAdd";

    /**
     * 新增 add
     */
    public final static String RESULT_ADD = "add";

    /**
     * 修改 update
     */
    public final static String RESULT_UPDATE = "update";

    /**
     * 删除 del
     */
    public final static String RESULT_DEL = "del";

    /**
     * 查看 read
     */
    public final static String RESULT_READ = "read";

    /**
     * 启用 start
     */
    public final static String RESULT_START = "start";

    /**
     * 停止 stop
     */
    public final static String RESULT_STOP = "stop";

    /**
     * 还原 revert
     */
    public final static String RESULT_REVERT = "revert";

    /**
     * 密码清空 clearPWD
     */
    public final static String RESULT_CLEARPWD = "clearPWD";

    /**
     * 密码生成 resetPWD
     */
    public final static String RESULT_RESETPWD = "resetPWD";

    /**
     * 添加用户 appendUser
     */
    public final static String RESULT_APPENDUSER = "appendUser";

    /**
     * 导出 export
     */
    public final static String RESULT_EXPORT = "export";

    /**
     * 群组操作 group
     */
    public final static String RESULT_GROUP = "group";

    /**
     * 选择 select
     */
    public final static String RESULT_SELECT = "select";

    /**
     * 活动 editAct
     */
    public final static String RESULT_EDITACT = "editAct";

    /**
     * 新增活动 activityAdd
     */
    public final static String RESULT_ACTIVITYADD = "activityAdd";

    /**
     * 下载 download
     */
    public final static String RESULT_DOWNLOAD = "download";

    /**
     * 导入数据 import
     */
    public final static String RESULT_IMPORT = "import";

    /**
     * 分配 dispatch
     */
    public final static String RESULT_DISPATCH = "dispatch";

    /**
     * 领用 getting
     */
    public final static String RESULT_GETTING = "getting";

    /**
     * 问卷分配 ballot
     */
    public final static String RESULT_BALLOT = "ballot";

    /**
     * 问卷拷贝 copy
     */
    public final static String RESULT_COPY = "copy";

    /**
     * 导出手机到本地 exportMobile
     */
    public final static String RESULT_EXPORTMOBILE = "exportMobile";

    /**
     * 导出群组给外呼 exportGroup
     */
    public final static String RESULT_EXPORTGROUP = "exportGroup";

    public final static String KEYSTRING = "54a1ce52da6498ba";

}
